package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 轮播广告;
 *
 * @author Yu Chaohua
 * @date 2024-5-22
 */
@ApiModel(value = "轮播广告", description = "")
@TableName("biz_ad")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BizAdEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(notes = "广告ID")
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Long adId;

    @ApiModelProperty(notes = "标题")
    @TableField(value = "ad_title")
    private String adTitle;

    @ApiModelProperty(notes = "链接内容的ID")
    @TableField(value = "content_id")
    private Long contentId;

    @ApiModelProperty(notes = "图片url")
    @TableField(value = "url")
    private String url;

    @ApiModelProperty(notes = "状态（0:启用 1:禁用)")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(notes = "创建者")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(notes = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(notes = "更新者")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(notes = "更新时间")
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty(notes = "备注")
    @TableField(value = "remark")
    private String remark;

}